package com.xc.shopping_font.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName(value = "orders")
public class Orders implements Serializable {


    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private String  no;

    @TableField("total_price")
    private String totalPrice;

    @TableField("pay_state")
    private Integer payState;

    @TableField("send_state")
    private Integer sendState;

    @TableField("order_time")
    private String orderTime;

    @TableField("pay_time")
    private String payTime;

    private String address;

    private String note;

    @TableField("customer_name")
    private String customerName;

    @TableField(exist = false)
    private List<Cart> carts;

    @TableField("alipay_no")
    private String alipayNo;




}
